<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<!--<div class="well top-bar">-->
    <?php 
    $this->menu = array_merge(
            array(
//                array('label' => "<span>".Yii::t('AweCrud.app', 'Back')."</span>", 'icon' => 'icon-chevron-left',  'itemOptions'=>array('id'=>'atrasTab')),
//                array('label' => Yii::t('app', 'Forward'), 'icon' => 'icon-chevron-right','itemOptions'=>array('id'=>'adelanteTab')),
//                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/atras.png") . "</div>" . Yii::t('AweCrud.app', 'Back'), 'itemOptions'=>array('id'=>'atrasTab')),
//                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/adelante.png") . "</div>" . Yii::t('AweCrud.app', 'Forward'), 'itemOptions'=>array('id'=>'adelanteTab')),
            ),
            $this->menu, 
            array(
               // array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/calendario.png") . "</div>" . Yii::t('AweCrud.app', 'Calendar'), 'url' => Yii::app()->baseUrl . "/index.php/sms/sms/sendSms"),
//                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/pendientes.png") . "</div>" . Yii::t('AweCrud.app', 'Pending'), 'url' => Yii::app()->baseUrl . "/index.php/pendientes/", 'itemOptions'=>array('class' => is_object(YiiBase::app()->getController()->getModule()) ? (YiiBase::app()->getController()->getModule()->getId() == "pendientes" ? "active" : "") : "")),
                //array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/sms.png") . "</div>" . Yii::t('AweCrud.app', 'Send SMS'), 'url' => Yii::app()->baseUrl . "/index.php/sms/sms/sendSms"),
            )
    );
    $this->widget('bootstrap.widgets.TbTabs', array(
        'type' => 'pills', // 'tabs' or 'pills'
        'tabs' => $this->menu,
        'htmlOptions' => array('class' => 'tb-tabs-tradesystem'),
        'encodeLabel' => false,
        'events'=>array('click'=>'js:topbar')
    ));
    ?>
<!--</div>-->
<?php if($this->menu): ?>
<!--<div class="top-controlls">
    <?php foreach($this->menu as $menu) :?>
    <?php $this->widget(
        'bootstrap.widgets.TbButtonGroup',
        array(
            'buttons' => array($menu),
        )
    ); ?>
    <?php endforeach; ?>
</div>-->
<?php endif; ?>

<div>
    <?php echo $content; ?>
</div>

<?php $this->endContent(); ?>